import request from "@/utils/request";
export function saveComment(data) {
    return request({
      url:'/comments',
      method:'post',
      data:data
    })
}

export function checkReplies(id,param) {
    return request({
        url:'/comments/' + id + '/replies',
        method:'get',
        params:param
    })
}

export function listComments(param) {
    return request({
        url:'/comments',
        method:'get',
        params:param
    })
}


export function saveCommentLike(commentId) {
    return request({
        url:'/comments/' + commentId + '/like',
        method:'post'
    })
}

export function reloadReply(id, param) {
    return request({
        url:'/comments/' + id + '/replies',
        method:'get',
        params:param
    })
}
